<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
    padding: 0;
    margin: 0;
}
.one{
    width: 300px;
    height: 200px;
    border: 1px solid red;
    overflow: hidden;
    position: relative;
}
.one>img{
    width: 320px;
    height: 200px;
    transition: 0.3s;
    transform: translate(-20px);

}
h3{
    position: absolute;
    top: 150px;
    left: 30px;
    color: #fff;
    transition: .3s;
}
p{
    position: absolute;
    top: 200px;
    left: 30px;
    color: #fff;
    transition: 0.2s;
    font-size: 12px;
}
.two{
    width: 300px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transition: 3s;
    background-color: rgba(59, 122, 69, 0.5);
}
.one:hover img{
    transform: translate(0px);
}
.one:hover h3{
    top: 100px;
}
.one:hover p{
    top: 130px;
}
.one:hover .two{
    display: none;
}
    </style>
</head>
<body>
    <div class="one">
        <img src="../images/1.jpg" alt="">
        <h3>nicelily</h3>
        <p>LILY LIKES TO PLAY WITH CRAYONS AND PENCILS</p>
        <div class="two"></div>
    </div>
</body>
</html>